package com.ruoyi.repair.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.repair.mapper.PropertyRepairLogMapper;
import com.ruoyi.repair.domain.PropertyRepairLog;
import com.ruoyi.repair.service.IPropertyRepairLogService;

/**
 * 报修进度日志Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-27
 */
@Service
public class PropertyRepairLogServiceImpl implements IPropertyRepairLogService 
{
    @Autowired
    private PropertyRepairLogMapper propertyRepairLogMapper;

    /**
     * 查询报修进度日志
     * 
     * @param logId 报修进度日志主键
     * @return 报修进度日志
     */
    @Override
    public PropertyRepairLog selectPropertyRepairLogByLogId(Long logId)
    {
        return propertyRepairLogMapper.selectPropertyRepairLogByLogId(logId);
    }

    /**
     * 查询报修进度日志列表
     * 
     * @param propertyRepairLog 报修进度日志
     * @return 报修进度日志
     */
    @Override
    public List<PropertyRepairLog> selectPropertyRepairLogList(PropertyRepairLog propertyRepairLog)
    {
        return propertyRepairLogMapper.selectPropertyRepairLogList(propertyRepairLog);
    }

    /**
     * 新增报修进度日志
     * 
     * @param propertyRepairLog 报修进度日志
     * @return 结果
     */
    @Override
    public int insertPropertyRepairLog(PropertyRepairLog propertyRepairLog)
    {
        return propertyRepairLogMapper.insertPropertyRepairLog(propertyRepairLog);
    }

    /**
     * 修改报修进度日志
     * 
     * @param propertyRepairLog 报修进度日志
     * @return 结果
     */
    @Override
    public int updatePropertyRepairLog(PropertyRepairLog propertyRepairLog)
    {
        return propertyRepairLogMapper.updatePropertyRepairLog(propertyRepairLog);
    }

    /**
     * 批量删除报修进度日志
     * 
     * @param logIds 需要删除的报修进度日志主键
     * @return 结果
     */
    @Override
    public int deletePropertyRepairLogByLogIds(Long[] logIds)
    {
        return propertyRepairLogMapper.deletePropertyRepairLogByLogIds(logIds);
    }

    /**
     * 删除报修进度日志信息
     * 
     * @param logId 报修进度日志主键
     * @return 结果
     */
    @Override
    public int deletePropertyRepairLogByLogId(Long logId)
    {
        return propertyRepairLogMapper.deletePropertyRepairLogByLogId(logId);
    }
}
